Part Number Hot Search : 
0J226 C9S12 K20101E 2909345 6594D 31ATR CM100D TOM9114
Product Description
Full Text Search
 

To Download NOA1305 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
   s e m i c o n d u c t o r c o m p o n e n t s i n d u s t r i e s , l l c , 2 0 1 2 o c t o b e r , 2 0 1 2 ? r e v . 0 1 p u b l i c a t i o n o r d e r n u m b e r : n o a 1 3 0 5 / d n o a 1 3 0 5 a m b i e n t l i g h t s e n s o r w i t h i 2 c i n t e r f a c e a n d d a r k c u r r e n t c o m p e n s a t i o n d e s c r i p t i o n t h e n o a 1 3 0 5 a m b i e n t l i g h t s e n s o r ( a l s ) i s d e s i g n e d f o r h a n d h e l d a p p l i c a t i o n s a n d i n t e g r a t e s a 1 6 ? b i t a d c , a 2 ? w i r e i 2 c d i g i t a l i n t e r f a c e , i n t e r n a l c l o c k o s c i l l a t o r a n d a p o w e r d o w n m o d e . t h e b u i l t i n d y n a m i c d a r k c u r r e n t c o m p e n s a t i o n a n d p r e c i s i o n c a l i b r a t i o n c a p a b i l i t y c o u p l e d w i t h e x c e l l e n t i r a n d 5 0 / 6 0 h z f l i c k e r r e j e c t i o n e n a b l e s h i g h l y a c c u r a t e m e a s u r e m e n t s f r o m v e r y l o w l i g h t l e v e l s t o f u l l s u n l i g h t . t h e d e v i c e c a n s u p p o r t s i m p l e c o u n t e q u a l s l u x r e a d i n g s i n i n t e r r u p t ? d r i v e n o r p o l l i n g m o d e s . t h e n o a 1 3 0 5 e m p l o y s p r o p r i e t a r y c m o s i m a g e s e n s i n g t e c h n o l o g y f r o m o n s e m i c o n d u c t o r t o p r o v i d e l a r g e s i g n a l t o n o i s e r a t i o ( s n r ) a n d w i d e d y n a m i c r a n g e ( d r ) o v e r t h e e n t i r e o p e r a t i n g t e m p e r a t u r e r a n g e . t h e o p t i c a l f i l t e r u s e d w i t h t h i s c h i p p r o v i d e s a l i g h t r e s p o n s e s i m i l a r t o t h a t o f t h e h u m a n e y e . f e a t u r e s ? s e n s e s a m b i e n t l i g h t a n d p r o v i d e s a n o u t p u t c o u n t p r o p o r t i o n a l t o t h e a m b i e n t l i g h t i n t e n s i t y ? p h o t o p i c s p e c t r a l r e s p o n s e ? d y n a m i c d a r k c u r r e n t c o m p e n s a t i o n ? i r r e j e c t i o n e l i m i n a t e s n e e d f o r a d d i t i o n a l i r p h o t o d i o d e ? l e s s t h a n 1 2 0  a a c t i v e p o w e r c o n s u m p t i o n i n n o r m a l o p e r a t i o n ? l e s s t h a n 2  a p o w e r d i s s i p a t i o n i n p o w e r d o w n m o d e ? i n t e r r u p t s i g n a l n o t i f i e s h o s t o f s i g n i f i c a n t i n t e n s i t y c h a n g e s ? w i d e o p e r a t i n g v o l t a g e r a n g e ( 2 . 4 v t o 3 . 6 v ) ? w i d e o p e r a t i n g t e m p e r a t u r e r a n g e ( ? 4 0 c t o 8 5 c ) ? l i n e a r r e s p o n s e o v e r t h e f u l l o p e r a t i n g r a n g e ? s e n s e s i n t e n s i t y o f a m b i e n t l i g h t f r o m 0 . 1 6 5 l u x t o o v e r 1 0 0 k l u x ? 8 s e l e c t a b l e i n t e g r a t i o n t i m e s r a n g i n g f r o m 6 . 2 5 m s t o 8 0 0 m s ? n o e x t e r n a l c o m p o n e n t s r e q u i r e d ? b u i l t ? i n 1 6 ? b i t a d c ? i 2 c s e r i a l c o m m u n i c a t i o n p o r t s u p p o r t s s t a n d a r d a n d f a s t m o d e s ? m e t a l m a s k p r o g r a m m a b l e i 2 c s l a v e a d d r e s s o p t i o n a v a i l a b l e ? t h e s e d e v i c e s a r e p b ? f r e e a n d a r e r o h s c o m p l i a n t a p p l i c a t i o n s ? s a v e s d i s p l a y p o w e r i n a p p l i c a t i o n s s u c h a s :  c e l l p h o n e s , p d a s , m p 3 p l a y e r s , g p s  c a m e r a s , v i d e o r e c o r d e r s  m o b i l e d e v i c e s w i t h d i s p l a y s o r b a c k l i t k e y p a d s c u d f n 6 c u s u f f i x c a s e 5 0 5 a d h t t p : / / o n s e m i . c o m 12 3 65 4 v d d i n t s d a v s s n c s c l ( t o p v i e w ) p i n a s s i g n m e n t d e v i c e p a c k a g e s h i p p i n g ? o r d e r i n g i n f o r m a t i o n n o a 1 3 0 5 c u t a g c u d f n 6 ( p b ? f r e e ) 2 5 0 0 / t a p e & r e e l ? f o r i n f o r m a t i o n o n t a p e a n d r e e l s p e c i f i c a t i o n s , i n c l u d i n g p a r t o r i e n t a t i o n a n d t a p e s i z e s , p l e a s e r e f e r t o o u r t a p e a n d r e e l p a c k a g i n g s p e c i f i c a t i o n b r o c h u r e , b r d 8 0 1 1 / d . t e m p e r a t u r e r a n g e ? 4 0 c t o 8 5 c
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 2 f i g u r e 1 . t y p i c a l a p p l i c a t i o n c i r c u i t s d a s c l v d d v s s r 1 1 k r 2 1 k v i n = 2 . 0 t o 3 . 6 v i c 1 n o a 1 3 0 5 m c u s d a s c l a l l p a r a s i t i c c a p a c i t a n c e s i n t r 3 1 k i n t 5 3 4 61 c 1 1 0  h  c 2 1 0  c b n o t t o e x c e e d 4 0 0 p f i n c l u d i n g f i g u r e 2 . s i m p l i f i e d b l o c k d i a g r a m p h o t o d i o d e r e f e r e n c e d i o d e a d c s d a s c l i n t o s c i 2 c i n t e r f a c e & c o n t r o l a d c & c o n t r o l i 2 c i n t e r f a c e h  t a b l e 1 . p i n f u n c t i o n d e s c r i p t i o n p i n p i n n a m e d e s c r i p t i o n 1 v s s g r o u n d p i n . 2 n c n o c o n n e c t i o n . 3 s c l e x t e r n a l i 2 c c l o c k s u p p l i e d b y t h e i 2 c m a s t e r . r e q u i r e s a 1 k  p u l l ? u p r e s i s t o r . 4 s d a b i ? d i r e c t i o n a l d a t a s i g n a l f o r c o m m u n i c a t i o n s b e t w e e n t h i s d e v i c e a n d t h e i 2 c m a s t e r . r e q u i r e s a 1 k  p u l l ? u p r e s i s t o r . 5 i n t i n t e r r u p t r e q u e s t t o t h e h o s t . p r o g r a m m a b l e a c t i v e s t a t e , o p e n ? d r a i n o u t p u t a n d r e q u i r e s a n e x t e r n a l 1 k  p u l l ? u p r e s i s t o r . 6 v d d p o w e r p i n . t a b l e 2 . a b s o l u t e m a x i m u m r a t i n g s r a t i n g s y m b o l v a l u e u n i t i n p u t p o w e r s u p p l y v d d 4 . 0 v i n p u t v o l t a g e r a n g e v i n ? 0 . 3 t o v d d + 0 . 2 v o u t p u t v o l t a g e r a n g e v o u t ? 0 . 3 t o v d d + 0 . 2 v m a x i m u m j u n c t i o n t e m p e r a t u r e t j ( m a x ) 8 5 c s t o r a g e t e m p e r a t u r e t s t g ? 4 0 t o 8 5 c e s d c a p a b i l i t y , h u m a n b o d y m o d e l ( n o t e 1 ) e s d h b m 2 k v e s d c a p a b i l i t y , c h a r g e d d e v i c e m o d e l ( n o t e 1 ) e s d c d m 7 5 0 ( c o r n e r p i n s ) , 5 0 0 ( c e n t e r p i n s ) v e s d c a p a b i l i t y , m a c h i n e m o d e l ( n o t e 1 ) e s d m m 2 0 0 v m o i s t u r e s e n s i t i v i t y l e v e l m s l 5 ? l e a d t e m p e r a t u r e s o l d e r i n g ( n o t e 2 ) t s l d 2 6 0 c s t r e s s e s e x c e e d i n g m a x i m u m r a t i n g s m a y d a m a g e t h e d e v i c e . m a x i m u m r a t i n g s a r e s t r e s s r a t i n g s o n l y . f u n c t i o n a l o p e r a t i o n a b o v e t h e r e c o m m e n d e d o p e r a t i n g c o n d i t i o n s i s n o t i m p l i e d . e x t e n d e d e x p o s u r e t o s t r e s s e s a b o v e t h e r e c o m m e n d e d o p e r a t i n g c o n d i t i o n s m a y a f f e c t d e v i c e r e l i a b i l i t y . 1 . t h i s d e v i c e i n c o r p o r a t e s e s d p r o t e c t i o n a n d i s t e s t e d b y t h e f o l l o w i n g m e t h o d s : e s d h u m a n b o d y m o d e l t e s t e d p e r e i a / j e s d 2 2 ? a 1 1 4 e s d c h a r g e d d e v i c e m o d e l t e s t e d p e r e s d ? s t m 5 . 3 . 1 ? 1 9 9 9 e s d m a c h i n e m o d e l t e s t e d p e r e i a / j e s d 2 2 ? a 1 1 5 l a t c h u p c u r r e n t m a x i m u m r a t i n g :  1 0 0 m a p e r j e d e c s t a n d a r d : j e s d 7 8 2 . f o r i n f o r m a t i o n , p l e a s e r e f e r t o o u r s o l d e r i n g a n d m o u n t i n g t e c h n i q u e s r e f e r e n c e m a n u a l , s o l d e r r m / d
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 3 t a b l e 3 . o p e r a t i n g r a n g e s r a t i n g s y m b o l s t a n d a r d m o d e f a s t m o d e u n i t m i n m a x m i n m a x p o w e r s u p p l y v o l t a g e v d d 2 . 4 3 . 6 2 . 4 3 . 6 v p o w e r s u p p l y c u r r e n t i d d 1 2 0 1 2 0  a q u i e s c e n t s u p p l y c u r r e n t ( n o t e 3 ) i d d _ q e 2 . 0 2 . 0  a l o w l e v e l i n p u t v o l t a g e ( v d d r e l a t e d i n p u t l e v e l s ) v i l ? 0 . 5 0 . 3 v d d ? 0 . 5 0 . 3 v d d v h i g h l e v e l i n p u t v o l t a g e ( v d d r e l a t e d i n p u t l e v e l s ) ( n o t e 4 ) v i h 0 . 7 v d d v d d + 0 . 5 0 . 7 v d d v d d + 0 . 5 v h y s t e r e s i s o f s c h m i t t t r i g g e r i n p u t s ( v d d > 2 v ) v h y s n / a n / a 0 . 0 5 v d d ? v l o w l e v e l o u t p u t v o l t a g e ( o p e n d r a i n ) a t 3 m a s i n k c u r r e n t ( v d d > 2 v ) v o l 0 0 . 4 0 0 . 4 v o u t p u t l o w c u r r e n t ( v o l = 0 . 4 v ) i o l 3 n / a 3 n / a m a o u t p u t l o w c u r r e n t ( v o l = 0 . 6 v ) i o l n / a n / a 6 n / a m a o u t p u t f a l l t i m e f r o m v i h m i n t o v i l m a x w i t h a b u s c a p a c i t - a n c e , c b f r o m 1 0 p f t o 4 0 0 p f ( n o t e 4 ) t o f ? 2 5 0 2 0 + 0 . 1 c b 2 5 0 n s p u l s e w i d t h o f s p i k e s w h i c h m u s t b e s u p p r e s s e d b y t h e i n p u t f i l t e r t s p n / a n / a 0 5 0 n s i n p u t c u r r e n t o f i o p i n w i t h a n i n p u t v o l t a g e b e t w e e n 0 . 1 v d d a n d 0 . 9 v d d i i ? 1 0 1 0 ? 1 0 1 0  a c a p a c i t a n c e o n i o p i n c i ? 1 0 ? 1 0 p f o p e r a t i n g f r e e ? a i r t e m p e r a t u r e r a n g e t a ? 4 0 8 5 ? 4 0 8 5 c 3 . c u r r e n t d i s s i p a t i o n w h e n a s o f t w a r e p o w e r d o w n c o m m a n d i s s e n t t o t h e d e v i c e . 4 . c b = c a p a c i t a n c e o f o n e b u s l i n e , m a x i m u m v a l u e o f w h i c h i n c l u d i n g a l l p a r a s i t i c c a p a c i t a n c e s s h o u l d b e l e s s t h a n 4 0 0 p f . t a b l e 4 . e l e c t r i c a l c h a r a c t e r i s t i c s ( u n l e s s o t h e r w i s e s p e c i f i e d , t h e s e s p e c i f i c a t i o n s a p p l y o v e r v d d = 3 . 3 v , ? 4 0 c < t a < 8 5 c ) ( n o t e 5 ) p a r a m e t e r s y m b o l s t a n d a r d m o d e f a s t m o d e u n i t m i n m a x m i n m a x s c l c l o c k f r e q u e n c y f s c l 0 1 0 0 0 4 0 0 k h z h o l d t i m e f o r s t a r t c o n d i t i o n . a f t e r t h i s p e r i o d , t h e f i r s t c l o c k p u l s e i s g e n e r a t e d . t h d ; s t a 4 . 0 ? 0 . 6 ?  s l o w p e r i o d o f s c l c l o c k t l o w 4 . 7 1 . 3  s h i g h p e r i o d o f s c l c l o c k t h i g h 4 . 0 0 . 6  s s e t ? u p t i m e f o r a r e p e a t e d s t a r t c o n d i t i o n t s u ; s t a 4 . 7 ? 0 . 6 ?  s d a t a h o l d t i m e f o r i 2 c ? b u s d e v i c e s t h d ; d a t _ d 0 3 . 4 5 0 0 . 9  s d a t a s e t ? u p t i m e t s u ; d a t 2 5 0 ? 1 0 0 ? n s r i s e t i m e o f b o t h s d a a n d s c l ( n o t e 6 ) t r ? 1 0 0 0 2 0 + 0 . 1 c b 3 0 0 n s f a l l t i m e o f b o t h s d a a n d s c l ( n o t e 6 ) t f ? 3 0 0 2 0 + 0 . 1 c b 3 0 0 n s s e t ? u p t i m e f o r s t o p c o n d i t i o n t s u ; s t o 4 . 0 ? 0 . 6 ?  s b u s f r e e t i m e b e t w e e n s t o p a n d s t a r t c o n d i t i o n t b u f 4 . 7 ? 1 . 3 ?  s c a p a c i t i v e l o a d f o r e a c h b u s l i n e c b ? 4 0 0 ? 4 0 0 p f n o i s e m a r g i n a t t h e l o w l e v e l f o r e a c h c o n n e c t e d d e v i c e ( i n c l u d i n g h y s t e r e s i s ) v n l 0 . 1 v d d ? 0 . 1 v d d ? v n o i s e m a r g i n a t t h e h i g h l e v e l f o r e a c h c o n n e c t e d d e v i c e ( i n c l u d i n g h y s t e r e s i s ) v n h 0 . 2 v d d ? 0 . 2 v d d ? v p a r a m e t e r s y m b o l t y p t y p u n i t i n t e r n a l o s c i l l a t o r f r e q u e n c y f o s c 1 1 m h z 5 . r e f e r t o f i g u r e 3 f o r m o r e i n f o r m a t i o n o n a c c h a r a c t e r i s t i c s 6 . t h e r i s e t i m e a n d f a l l t i m e a r e m e a s u r e d w i t h a p u l l ? u p r e s i s t o r r p = 1 k  a n d c b o f 4 0 0 p f ( i n c l u d i n g a l l p a r a s i t i c c a p a c i t a n c e s ) .
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 4 t a b l e 5 . o p t i c a l c h a r a c t e r i s t i c s ( u n l e s s o t h e r w i s e s p e c i f i e d , t h e s e s p e c i f i c a t i o n s a r e f o r v d d = 3 . 3 v , t a = 2 5 c , t i n t = 2 0 0 m s ) p a r a m e t e r t e s t c o n d i t i o n s s y m b o l m i n t y p m a x u n i t i r r a d i a n c e r e s p o n s i v i t y  p ( s e e f i g u r e 5 ) r e 5 4 5 n m i l l u m i n a n c e r e s p o n s i v i t y w h i t e l e d s o u r c e : e v = 1 0 0 l u x ( s e e f i g u r e 6 ) r v i 1 0 0 1 5 4 c o u n t s w h i t e l e d s o u r c e : e v = 1 0 0 0 l u x ( s e e f i g u r e 6 ) r v i 1 0 0 0 1 5 4 3 d a r k r e s p o n s i v i t y e v = 0 l u x ( s e e f i g u r e 6 ) i d a r k 0 c o u n t s f i g u r e 3 . a c c h a r a c t e r i s t i c s
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 5 t y p i c a l c h a r a c t e r i s t i c s f i g u r e 4 . s p e c t r a l r e s p o n s e f i g u r e 5 . i l l u m i n a t i o n r e s p o n s e t o v a r i o u s l i g h t s o u r c e s w a v e l e n g t h ( n m ) 9 0 0 8 0 0 7 0 0 6 0 0 5 0 0 4 0 0 3 0 0 2 0 0 0 0 . 1 0 . 3 0 . 4 0 . 6 0 . 7 0 . 9 1 . 0 f i g u r e 6 . o u t p u t c o u n t s v s . e v f i g u r e 7 . o u t p u t c o u n t s v s . t e m p e r a t u r e ( 1 0 0 l u x ) e v ( l u x ) t e m p e r a t u r e ( c ) 1 2 0 0 1 0 0 0 8 0 0 6 0 0 4 0 0 2 0 0 0 0 4 0 0 8 0 0 1 2 0 0 1 6 0 0 2 0 0 0 6 0 4 0 2 0 0 ? 2 0 ? 4 0 ? 6 0 0 0 . 2 0 . 4 0 . 6 0 . 8 1 . 0 1 . 2 f i g u r e 8 . o u t p u t c o u n t s v s . a n g l e ( e n d v i e w , n o r m a l i z e d ) f i g u r e 9 . o u t p u t c o u n t s v s . a n g l e ( s i d e v i e w , n o r m a l i z e d ) o u t p u t c o u n t s ( n o r m a l i z e d ) o u t p u t c o u n t s i n c a n d e s c e n t ( 2 8 5 0 k ) f l u o r e s c e n t ( 2 7 0 0 k ) w h i t e l e d ( 5 6 0 0 k ) f l u o r e s c e n t ( 5 0 0 0 k ) r a t i o 2 . 0 1 . 5 1 . 0 0 . 5 0 0 . 0 0 . 1 0 . 2 0 . 3 0 . 4 0 . 5 0 . 6 0 . 7 0 . 8 0 . 9 1 . 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 1 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0 1 7 0 1 8 0 ? 1 7 0 ? 1 6 0 ? 1 5 0 ? 1 4 0 ? 1 3 0 ? 1 2 0 ? 1 1 0 ? 1 0 0 ? 9 0 ? 8 0 ? 7 0 ? 6 0 ? 5 0 ? 4 0 ? 3 0 ? 2 0 ? 1 0  e n d v i e w 1 2 3 6 5 4 t o p v i e w ? 9 0 o 9 0 o 0 . 0 0 . 2 0 . 4 0 . 6 0 . 8 1 . 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 1 0 0 1 1 0 1 2 0 1 3 0 1 4 0 1 5 0 1 6 0 1 7 0 1 8 0 ? 1 7 0 ? 1 6 0 ? 1 5 0 ? 1 4 0 ? 1 3 0 ? 1 2 0 ? 1 1 0 ? 1 0 0 ? 9 0 ? 8 0 ? 7 0 ? 6 0 ? 5 0 ? 4 0 ? 3 0 ? 2 0 ? 1 0  s i d e v i e w t o p v i e w 1 2 3 6 5 4 ? 9 0 o 9 0 o w h i t e l e d ( 5 6 0 0 k ) 8 0 1 0 0 v d d = 3 . 3 v o u t p u t c o u n t s ( n o r m a l i z e d t o 2 0 c ) 1 0 0 0 0 . 2 0 . 5 0 . 8 a l s h u m a n e y e
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 6 t y p i c a l c h a r a c t e r i s t i c s f i g u r e 1 0 . o u t p u t c o u n t s v s . t e m p e r a t u r e ( 0 l u x ) f i g u r e 1 1 . o u t p u t c o u n t s v s . s u p p l y v o l t a g e ( 1 0 0 l u x ) t e m p e r a t u r e ( c ) 8 0 6 0 4 0 2 0 0 ? 2 0 ? 4 0 ? 6 0 ? 2 . 0 ? 1 . 5 ? 0 . 5 0 0 . 5 1 . 0 1 . 5 2 . 0 f i g u r e 1 2 . s u p p l y c u r r e n t v s . t e m p e r a t u r e ( 1 0 0 l u x ) f i g u r e 1 3 . s u p p l y c u r r e n t v s s u p p l y v o l t a g e ( 1 0 0 l u x ) t e m p e r a t u r e ( c ) v d d ( v ) 8 0 6 0 4 0 2 0 0 ? 2 0 ? 4 0 ? 6 0 0 1 0 3 0 4 0 6 0 7 0 9 0 1 0 0 3 . 6 3 . 4 3 . 2 3 . 0 2 . 8 2 . 6 2 . 4 0 1 0 3 0 4 0 5 0 7 0 9 0 1 0 0 f i g u r e 1 4 . m a x i m u m v a l u e o f r p ( i n k  ) a s a f u n c t i o n o f b u s c a p a c i t a n c e ( i n p f ) f i g u r e 1 5 . s d a f a l l t i m e ( t f ) b u s c a p a c i t a n c e ( p f ) t i m e ( s ) 4 0 0 3 0 0 2 0 0 1 0 0 0 0 1 . 5 3 . 0 4 . 5 6 . 0 7 . 5 1 2 7 . 5 u 1 2 7 . 0 u 1 2 6 . 5 u 1 2 6 . 0 u 0 1 2 3 4 o u t p u t c o u n t s ( n o r m a l i z e d t o 2 0 c ) i d d (  a ) i d d (  a ) r p ( m a x ) ( k  ) v d d ( v ) 3 . 6 3 . 4 3 . 2 3 . 0 2 . 8 2 . 6 2 . 4 0 0 . 2 0 . 4 0 . 6 0 . 8 1 . 0 1 . 2 o u t p u t c o u n t s ( n o r m a l i z e d ) r s = 0 2 0 6 0 8 0 1 0 0 2 0 5 0 8 0 v d d = 3 . 3 v 1 0 0 ? 1 . 0 v d d = 3 . 3 v r p = 1 k  c b = 4 0 0 p f ( i n c l u d i n g a l l p a r a s i t i c c a p s ) t f = 7 5 n s
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 7 d e s c r i p t i o n o f o p e r a t i o n a m b i e n t l i g h t s e n s o r a r c h i t e c t u r e t h e n o a 1 3 0 5 e m p l o y s a s e n s i t i v e p h o t o d i o d e f a b r i c a t e d i n o n s e m i c o n d u c t o r ? s s t a n d a r d c m o s p r o c e s s t e c h n o l o g y . t h e m a j o r c o m p o n e n t s o f t h i s s e n s o r a r e a s s h o w n i n f i g u r e 2 . t h e p h o t o n s w h i c h a r e t o b e d e t e c t e d p a s s t h r o u g h a n o n s e m i c o n d u c t o r p r o p r i e t a r y c o l o r f i l t e r l i m i t i n g e x t r a n e o u s p h o t o n s a n d t h u s p e r f o r m i n g a s a b a n d p a s s f i l t e r o n t h e i n c i d e n t w a v e f r o n t . t h e f i l t e r o n l y t r a n s m i t s p h o t o n s i n t h e v i s i b l e s p e c t r u m w h i c h a r e p r i m a r i l y d e t e c t e d b y t h e h u m a n e y e . t h e p h o t o r e s p o n s e o f t h i s s e n s o r i s a s s h o w n i n f i g u r e 5 . t h e a m b i e n t l i g h t s i g n a l d e t e c t e d b y t h e p h o t o d i o d e i s c o n v e r t e d t o d i g i t a l s i g n a l u s i n g a v a r i a b l e s l o p e i n t e g r a t i n g a d c w i t h a r e s o l u t i o n o f 1 6 ? b i t s , u n s i g n e d . t h e a d c v a l u e i s p r o v i d e d t o t h e c o n t r o l b l o c k c o n n e c t e d t o t h e i 2 c i n t e r f a c e b l o c k . e q u a t i o n 1 s h o w s t h e r e l a t i o n s h i p o f o u t p u t c o u n t s c n t a s a f u n c t i o n o f i n t e g r a t i o n c o n s t a n t i k , i n t e g r a t i o n t i m e t i n t ( i n s e c o n d s ) a n d t h e i n t e n s i t y o f t h e a m b i e n t l i g h t , i l ( i n l u x ) , a t r o o m t e m p e r a t u r e ( 2 5 c ) . i l  c n t  ( i k  t i n t ) ( e q . 1 ) w h e r e : i k  7 . 7 ( f o r w h i t e l e d s o u r c e ) f o r e x a m p l e l e t : c n t = 1 0 0 0 t i n t = 2 0 0 m s i n t e n s i t y o f a m b i e n t l i g h t , i l ( i n l u x ) : i l  1 0 0 0  ( 7 . 7  2 0 0 m s ) ( e q . 2 ) i l = 6 4 9 l u x m o d e s o f o p e r a t i o n t h e n o a 1 3 0 5 c a n b e p l a c e d i n a n y o f t h e f o l l o w i n g m o d e s o f o p e r a t i o n b y p r o g r a m m i n g r e g i s t e r s o v e r t h e i 2 c b u s : 1 . i n t e r r u p t d r i v e n m o d e 2 . p o l l i n g m o d e 3 . p o w e r ? d o w n m o d e i n t h e i n t e r r u p t d r i v e n m o d e , o n c e t h e n o a 1 3 0 5 i s c o n f i g u r e d , n o i 2 c a c t i v i t y i s n e c e s s a r y u n t i l t h e a m b i e n t l i g h t i n t e n s i t y g o e s a b o v e t h e v a l u e p r o g r a m m e d i n t h e i n t e r r u p t t h r e s h o l d r e g i s t e r . w h e n t h i s o c c u r s , t h e d e v i c e s i g n a l s a n i n t e r r u p t o n t h e i n t p i n . t h e n i t i s u p t o t h e i 2 c m a s t e r h o s t t o r e a d t h e a l s c o u n t f r o m t h e d e v i c e . i n p o l l i n g m o d e , i n t e r r u p t s a r e t y p i c a l l y d i s a b l e d , b u t t h e n o a 1 3 0 5 c o n t i n u o u s l y t a k e s m e a s u r e m e n t s a n d t h e i 2 c m a s t e r h o s t r e a d s o u t t h e m o s t r e c e n t c o u n t w h e n e v e r i t d e s i r e s t o d o s o , t y p i c a l l y i n a t i m e d r e p e a t l o o p . i n p o w e r ? d o w n m o d e , t h e n o a 1 3 0 5 s t o p s t a k i n g a m b i e n t l i g h t m e a s u r e m e n t s a n d p o w e r s d o w n m o s t o f t h e i n t e r n a l c i r c u i t r y a n d t h e i n t p i n i s d e a c t i v a t e d . p o w e r i s m a i n t a i n e d t o p r e s e r v e t h e r e g i s t e r v a l u e s ( s t a t i c m e m o r y ) a n d a p o r t i o n o f t h e i 2 c r e m a i n s a c t i v e t o m o n i t o r f o r a p o w e r ? o n c o m m a n d t o t h e n o a 1 3 0 5 . i 2 c i n t e r f a c e t h e n o a 1 3 0 5 a c t s a s a n i 2 c s l a v e d e v i c e a n d s u p p o r t s s i n g l e r e g i s t e r r e a d a n d w r i t e o p e r a t i o n s , i n a d d i t i o n t o b l o c k r e a d a n d b l o c k w r i t e o p e r a t i o n s . a l l d a t a t r a n s a c t i o n s o n t h e b u s a r e 8 b i t s l o n g . e a c h d a t a b y t e t r a n s m i t t e d i s f o l l o w e d b y a n a c k n o w l e d g e b i t . d a t a i s t r a n s m i t t e d w i t h t h e m s b f i r s t . f i g u r e 1 6 s h o w s a n i 2 c w r i t e o p e r a t i o n . w r i t e t r a n s a c t i o n s b e g i n w i t h t h e m a s t e r s e n d i n g a n i 2 c s t a r t s e q u e n c e f o l l o w e d b y t h e s e v e n b i t s l a v e a d d r e s s ( n o a 1 3 0 5 = 0 x 3 9 ) a n d t h e w r i t e ( 0 ) c o m m a n d b i t . t h e n o a 1 3 0 5 w i l l a c k n o w l e d g e t h i s b y t e t r a n s f e r w i t h a n a p p r o p r i a t e a c k . n e x t t h e m a s t e r w i l l s e n d t h e 8 b i t r e g i s t e r a d d r e s s t o b e w r i t t e n t o . a g a i n t h e n o a 1 3 0 5 w i l l a c k n o w l e d g e r e c e p t i o n w i t h a n a c k . f i n a l l y , t h e m a s t e r w i l l b e g i n s e n d i n g 8 b i t d a t a s e g m e n t ( s ) t o b e w r i t t e n t o t h e n o a 1 3 0 5 r e g i s t e r b a n k . t h e n o a 1 3 0 5 w i l l s e n d a n a c k a f t e r e a c h b y t e a n d i n c r e m e n t t h e a d d r e s s p o i n t e r b y o n e i n p r e p a r a t i o n f o r t h e n e x t t r a n s f e r . w r i t e t r a n s a c t i o n s a r e t e r m i n a t e d w i t h e i t h e r a n i 2 c s t o p o r w i t h a n o t h e r i i 2 c s t a r t ( r e p e a t e d s t a r t ) . 7 8 8 a [ 6 : 0 ] d [ 7 : 0 ] d [ 7 : 0 ] w r i t e a c k a c k a c k d e v i c e a d d r e s s r e g i s t e r a d d r e s s r e g i s t e r d a t a s t a r t c o n d i t i o n s t o p c o n d i t i o n 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 x 7 2 f i g u r e 1 6 . i 2 c w r i t e c o m m a n d
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 8 f i g u r e 1 7 s h o w s t h e m o s t b a s i c i 2 c r e a d c o m m a n d s e q u e n c e s e n t b y t h e m a s t e r t o t h e s l a v e d e v i c e . t h e s e q u e n c e c o n s i s t s o f a c o m p l e t e i 2 c w r i t e c o m m a n d w h i c h s e t s t h e a d d r e s s p o i n t e r i n p r e p a r a t i o n f o r t h e i 2 c r e a d c o m m a n d s i n c e t h e r e a d c o m m a n d i t s e l f d o e s n o t i n c l u d e a r e g i s t e r a d d r e s s . w h e n r e a d i n g f r o m a r e a d o n l y d a t a r e g i s t e r i n t h e n o a 1 3 0 5 i t i s a c c e p t a b l e t o w r i t e a 0 t o t h e r e g i s t e r i n o r d e r t o u p d a t e t h e a d d r e s s p o i n t e r , b u t t h e 0 d o e s n o t a c t u a l l y o v e r ? w r i t e t h e v a l u e i n t h e d a t a r e g i s t e r . 7 8 8 a [ 6 : 0 ] d [ 7 : 0 ] d [ 7 : 0 ] w r i t e a c k a c k a c k d e v i c e a d d r e s s r e g i s t e r a d d r e s s r e g i s t e r d a t a s t a r t c o n d i t i o n c o n d i t i o n 0 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 x 7 2 7 8 8 a [ 6 : 0 ] d [ 7 : 0 ] d [ 7 : 0 ] r e a d a c k a c k n a c k d e v i c e a d d r e s s r e g i s t e r d a t a [ a ] r e g i s t e r d a t a [ a + 1 ] s t a r t c o n d i t i o n s t o p c o n d i t i o n 0 1 1 1 0 0 1 1 0 b b b b b b b b b b b b b b b b 0 1 0 x 7 3 s t o p d [ 7 : 0 ] a c k d [ 7 : 0 ] a c k f i g u r e 1 7 . i 2 c r e a d c o m m a n d o n c e t h e i 2 c w r i t e c o m m a n d i s c o m p l e t e d , t h e m a s t e r s e n d s a n i 2 c s t a r t s e q u e n c e f o l l o w e d b y t h e s e v e n b i t s l a v e a d d r e s s ( n o a 1 3 0 5 = 0 x 3 9 ) a n d t h e r e a d ( 1 ) c o m m a n d b i t . t h e n o a 1 3 0 5 w i l l a c k n o w l e d g e t h i s b y t e t r a n s f e r w i t h a n a p p r o p r i a t e a c k . t h e n o a 1 3 0 5 w i l l t h e n b e g i n s h i f t i n g o u t d a t a f r o m t h e r e g i s t e r j u s t a d d r e s s e d . i f t h e m a s t e r w i s h e s t o r e c e i v e m o r e d a t a ( n e x t r e g i s t e r a d d r e s s ) , i t w i l l a c k t h e s l a v e a t t h e e n d o f t h e 8 b i t d a t a t r a n s m i s s i o n , a n d t h e s l a v e w i l l r e s p o n d b y s e n d i n g t h e n e x t b y t e , a n d s o o n . t o s i g n a l t h e e n d o f t h e r e a d t r a n s a c t i o n , t h e m a s t e r w i l l s e n d a n a c k b i t a t t h e e n d o f a t r a n s m i s s i o n f o l l o w e d b y a n i 2 c s t o p . r i s e a n d f a l l t i m e o f s d a ( o u t p u t ) p r o p e r o p e r a t i o n o f t h e i 2 c b u s d e p e n d s o n k e e p i n g t h e b u s c a p a c i t a n c e l o w a n d s e l e c t i n g s u i t a b l e p u l l ? u p r e s i s t o r v a l u e s . f i g u r e 1 5 s h o w s t h e f a l l t i m e o n s d a i n o u t p u t m o d e u n d e r m a x i m u m l o a d c o n d i t i o n s . t h e m e a s u r e m e n t s e t ? u p i s s h o w n i n f i g u r e 1 8 . f i g u r e 1 4 s h o w s t h e m a x i m u m v a l u e o f t h e p u l l ? u p r e s i s t o r ( r p ) a s a f u n c t i o n o f t h e i 2 c d a t a b u s c a p a c i t a n c e . n o a 1 3 0 5 l e d p u l s e g e n e r a t o r a d c s d a s c l 1 6 ? b i t s c o n t r o l i n t a d c c o n t r o l f i g u r e 1 8 . m e a s u r e m e n t s e t ? u p h  i 2 c s e r i a l i n t e r f a c e
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 9 n o a 1 3 0 5 d a t a r e g i s t e r s n o a 1 3 0 5 o p e r a t i o n i s o b s e r v e d a n d c o n t r o l l e d b y i n t e r n a l d a t a r e g i s t e r s r e a d f r o m a n d w r i t t e n t o v i a t h e e x t e r n a l i 2 c i n t e r f a c e . r e g i s t e r s a r e l i s t e d i n t a b l e 6 . d e f a u l t v a l u e s a r e s e t o n i n i t i a l p o w e r u p . t a b l e 6 . n o a 1 3 0 5 d a t a r e g i s t e r s ( n o t e 7 ) a d d r e s s r e g i s t e r t y p e v a l u e ( b i n a r y ) d e s c r i p t i o n d e f a u l t ( b i n a r y ) 0 x 0 0 p o w e r _ c o n t r o l r w 0 0 0 0 0 0 0 0 p o w e r d o w n 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 p o w e r o n 0 0 0 0 1 0 0 1 t e s t m o d e 1 ( r e s e r v e d ) 0 0 0 0 1 0 1 0 t e s t m o d e 2 ( f i x e d o u t p u t 0 x 5 5 5 5 ) 0 0 0 0 1 0 1 1 t e s t m o d e 3 ( f i x e d o u t p u t 0 x a a a a ) 0 x 0 1 r e s e t r w 0 0 0 1 0 0 0 0 r e s e t a l s d a t a . r e s e t s t o 0 0 0 0 0 0 0 0 0 0 0 0 0 x 0 2 i n t e g r a t i o n _ t i m e r w 0 0 0 0 0 0 0 0 8 0 0 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 4 0 0 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 0 1 0 2 0 0 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 0 1 1 1 0 0 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 1 0 0 5 0 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 1 0 1 2 5 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 1 1 0 1 2 . 5 m s c o n t i n u o u s m e a s u r e m e n t 0 0 0 0 0 1 1 1 6 . 2 5 m s c o n t i n u o u s m e a s u r e m e n t 0 x 0 3 i n t _ s e l e c t r w 0 0 0 0 0 0 0 1 l  h 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 h  l 0 0 0 0 0 0 1 1 i n a c t i v e , a l w a y s h 0 x 0 4 i n t _ t h r e s h _ l s b r w x x x x x x x x i n t e r r u p t t h r e s h o l d , l e a s t s i g n i f i c a n t b i t s 0 0 0 0 0 0 0 0 0 x 0 5 i n t _ t h r e s h _ m s b r w x x x x x x x x i n t e r r u p t t h r e s h o l d , m o s t s i g n i f i c a n t b i t s 0 0 0 0 1 0 0 0 0 x 0 6 a l s _ d a t a _ l s b r x x x x x x x x a l s m e a s u r e m e n t d a t a , l e a s t s i g n i f i c a n t b i t s 0 0 0 0 0 0 0 0 0 x 0 7 a l s _ d a t a _ m s b r x x x x x x x x a l s m e a s u r e m e n t d a t a , m o s t s i g n i f i c a n t b i t s 0 0 0 0 0 0 0 0 0 x 0 8 d e v i c e _ i d _ l s b r 0 0 0 1 1 0 0 1 d e v i c e i d v a l u e , l e a s t s i g n i f i c a n t b i t s ( 1 3 0 5 d e c i m a l , 0 x 0 5 1 9 h e x ) 0 0 0 1 1 0 0 1 0 x 0 9 d e v i c e _ i d _ m s b r 0 0 0 0 0 1 0 1 d e v i c e i d v a l u e , m o s t s i g n i f i c a n t b i t s ( 1 3 0 5 d e c i m a l , 0 x 0 5 1 9 h e x ) 0 0 0 0 0 1 0 1 7 . w r i t i n g a v a l u e o t h e r t h a n t h o s e s p e c i f i e d f o r r e g i s t e r s 0 x 0 0 , 0 x 0 1 , 0 x 0 2 , 0 x 0 3 w i l l c a u s e t h e s p e c i f i e d d e f a u l t v a l u e t o b e w r i t t e n i n s t e a d .
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 1 0 p o w e r _ c o n t r o l r e g i s t e r ( 0 x 0 0 ) t h e p o w e r _ c o n t r o l r e g i s t e r i s u s e d t o p o w e r t h e d e v i c e u p a n d d o w n v i a s o f t w a r e c o n t r o l . b y d e f a u l t t h i s d e v i c e p o w e r s u p i n t h e p o w e r o n m o d e . t o r e d u c e p o w e r c o n s u m p t i o n , t h e n o a 1 3 0 5 c a n b e p o w e r e d d o w n a t a n y t i m e b y w r i t i n g 0 x 0 0 t o t h i s r e g i s t e r . t o p o w e r u p t h e d e v i c e , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 0 f o r t h e p o w e r _ c o n t r o l r e g i s t e r a d d r e s s 4 . i s s u e 0 x 0 8 t o p u t t h e d e v i c e i n t h e p o w e r o n s t a t e 5 . i s s u e s t o p c o m m a n d a f t e r a p p l y i n g p o w e r t o t h e d e v i c e o r a f t e r i s s u i n g a p o w e r ? o n c o m m a n d , s t a b l e a l s _ d a t a a n d i n t s i g n a l m a y n o t b e a v a i l a b l e f o r t h e f i r s t t h r e e i n t e g r a t i o n t i m e s . f o r e x a m p l e w i t h a d e f a u l t o f 2 0 0 m s i n t e g r a t i o n t i m e , t h e i 2 c m a s t e r s h o u l d w a i t a t l e a s t 6 0 0 m s b e f o r e a c c e s s i n g t h i s d e v i c e . t o p o w e r d o w n t h e d e v i c e , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 0 f o r t h e p o w e r _ c o n t r o l r e g i s t e r a d d r e s s 4 . i s s u e 0 x 0 0 t o p u t t h e d e v i c e i n t h e p o w e r d o w n s t a t e 5 . i s s u e s t o p c o m m a n d a f t e r i s s u i n g a p o w e r ? o n c o m m a n d , t h e i 2 c m a s t e r s h o u l d w a i t a t l e a s t 1 . 5 m s b e f o r e a c c e s s i n g t h i s d e v i c e . t h e d a t a r e g i s t e r s a r e s e t t o t h e i r d e f a u l t v a l u e s w h e n p o w e r i s f i r s t a p p l i e d t o t h e d e v i c e . h o w e v e r t h e p o w e r ? d o w n a n d p o w e r ? o n c o m m a n d s d o n o t a f f e c t t h e v a l u e s o f t h e d a t a r e g i s t e r s . t h e t e s t m o d e s p r o v i d e a u s e f u l d e b u g g i n g m o d e a s t h e y c a u s e t h e d e v i c e t o o u t p u t k n o w n v a l u e s i n p l a c e o f t h e a l s _ d a t a v a l u e s . r e s e t r e g i s t e r ( 0 x 0 1 ) s o f t w a r e r e s e t i s c o n t r o l l e d b y t h i s r e g i s t e r . s e t t i n g t h i s r e g i s t e r f o l l o w e d b y a n i 2 c _ s t o p s e q u e n c e w i l l i m m e d i a t e l y r e s e t t h e n o a 1 3 0 5 t o t h e s t a r t u p s t a n d b y s t a t e a n d c l e a r t h e a l s _ d a t a r e g i s t e r . h o w e v e r t h e v a l u e s o f t h e o t h e r d a t a r e g i s t e r s a r e n o t a f f e c t e d . t o r e s e t t h e d e v i c e , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 1 f o r t h e r e s e t r e g i s t e r a d d r e s s 4 . i s s u e 0 x 1 0 t o r e s e t t h e d e v i c e 5 . i s s u e s t o p c o m m a n d a f t e r i s s u i n g a r e s e t c o m m a n d , t h e d e v i c e w i l l r e s e t t h e r e s e t r e g i s t e r t o 0 x 0 0 . i n t e g r a t i o n _ t i m e r e g i s t e r ( 0 x 0 2 ) t h e i n t e g r a t i o n _ t i m e r e g i s t e r c o n t r o l s t h e i n t e g r a t i o n t i m e o f t h e a m b i e n t l i g h t s e n s o r w h i c h d i r e c t l y a f f e c t s t h e s e n s i t i v i t y . t o s e t t h e i n t e g r a t i o n t i m e , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 2 f o r t h e i n t e g r a t i o n _ t i m e r e g i s t e r a d d r e s s 4 . i s s u e 0 x 0 2 t o s e t t h e i n t e g r a t i o n t i m e t o 2 0 0 m s ( f o r e x a m p l e ) 5 . i s s u e s t o p c o m m a n d i n t _ s e l e c t r e g i s t e r ( 0 x 0 3 ) t h e i n t _ s e l e c t r e g i s t e r c o n t r o l s t h e p o l a r i t y o f t h e i n t e r r u p t p i n i n t a n d e n a b l e s o r d i s a b l e s i n t e r r u p t s o n t h a t p i n . t o s p e c i f y l o w t o h i g h t r a n s i t i o n s o n i n t t o s i g n a l a n i n t e r r u p t , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 3 f o r t h e i n t _ s e l e c t r e g i s t e r a d d r e s s 4 . i s s u e 0 x 0 1 t o s p e c i f y l o w t o h i g h s i g n a l i n g o n i n t 5 . i s s u e s t o p c o m m a n d t o s p e c i f y l o w t o h i g h t r a n s i t i o n s o n i n t t o s i g n a l a n i n t e r r u p t , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 3 f o r t h e i n t _ s e l e c t r e g i s t e r a d d r e s s 4 . i s s u e 0 x 0 2 t o s p e c i f y h i g h t o l o w s i g n a l i n g o n i n t 5 . i s s u e s t o p c o m m a n d d i s a b l i n g i n t e r r u p t s c a u s e s t h e i n t p i n t o b e h e l d i n t h e o p e n ? d r a i n o r h i g h s t a t e . t o d i s a b l e i n t e r r u p t s c o m p l e t e l y o n t h e i n t p i n , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 3 f o r t h e i n t _ s e l e c t r e g i s t e r a d d r e s s 4 . i s s u e 0 x 0 3 t o d i s a b l e i n t e r r u p t s o n i n t 5 . i s s u e s t o p c o m m a n d i n t _ t h r e s h _ l s b a n d i n t _ t h r e s _ m s b r e g i s t e r s ( 0 x 0 4 , 0 x 0 5 ) t h e i n t _ t h r e s h r e g i s t e r s p e c i f i e s a n a m b i e n t l i g h t t h r e s h o l d v a l u e f o r s i g n a l i n g i n t e r r u p t s o n t h e i n t p i n . t h e i n t _ t h r e s h r e g i s t e r i s 1 6 ? b i t s w i d e t o m a t c h t h e 1 6 ? b i t a l s _ d a t a r e g i s t e r a n d i s a c c e s s e d o v e r t h e i 2 c b u s a s t w o 8 ? b i t r e g i s t e r s f o r t h e l e a s t a n d m o s t s i g n i f i c a n t b i t s ( l s b a n d m s b ) . o n a n y m e a s u r e m e n t c y c l e w h e r e t h e a l s _ d a t a i n t e n s i t y c o u n t e x c e e d s t h e i n t _ t h r e s h v a l u e , t h e i n t p i n w i l l b e c o m e a c t i v e a n d w i l l r e m a i n a c t i v e u n t i l a m e a s u r e m e n t c y c l e w h e r e t h e c o u n t i s l e s s t h a n o r
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 1 1 e q u a l t o t h e t h r e s h o l d ( a n d p r o v i d e d t h e i n t p i n i s e n a b l e d , s e e i n t _ s e l e c t r e g i s t e r ) . c h a n g i n g t h e i n t _ t h r e s h r e g i s t e r v a l u e c a n c a u s e t h e i n t p i n t o c h a n g e i m m e d i a t e l y i f t h e a l s _ d a t a t o i n t _ t h r e s h c o m p a r i s o n c h a n g e s . p o w e r i n g d o w n t h e d e v i c e w i l l c a u s e t h e i n t p i n t o b e c o m e i n a c t i v e . t o p r o g r a m a v a l u e i n t o t h e i n t _ t h r e s h r e g i s t e r , u s e t h e f o l l o w i n g w r i t e c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 4 f o r t h e i n t _ t h r e s _ l s b r e g i s t e r a d d r e s s 4 . i s s u e t h e 8 ? b i t l s b v a l u e 5 . i s s u e s t o p c o m m a n d 6 . i s s u e s t a r t c o m m a n d 7 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 8 . i s s u e 0 x 0 5 f o r t h e i n t _ t h r e s _ m s b r e g i s t e r a d d r e s s 9 . i s s u e t h e 8 ? b i t m s b v a l u e 1 0 . i s s u e s t o p c o m m a n d a f t e r a p o w e r ? d o w n a n d p o w e r ? o n s e q u e n c e , w a i t a t l e a s t t h r e e i n t e g r a t i o n t i m e s f o r t h e d a t a t o s t a b i l i z e , b e f o r e a c c e s s i n g a n y a l s _ d a t a v a l u e s f r o m n o a 1 3 0 5 . a l s _ d a t a _ l s b a n d a l s _ d a t a _ m s b r e g i s t e r s ( 0 x 0 6 , 0 x 0 7 ) t h e a l s _ d a t a r e g i s t e r h o l d s t h e a m b i e n t l i g h t i n t e n s i t y c o u n t f r o m t h e m o s t r e c e n t m e a s u r e m e n t . t h e a l s _ d a t a r e g i s t e r i s 1 6 ? b i t s w i d e a n d i s a c c e s s e d f r o m t h e i 2 c b u s a s t w o 8 ? b i t r e g i s t e r s f o r t h e l e a s t a n d m o s t s i g n i f i c a n t b i t s ( l s b a n d m s b ) . t o r e a d t h e a l s _ d a t a r e g i s t e r , u s e t h e f o l l o w i n g r e a d c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 6 f o r t h e i n t _ d a t a _ l s b r e g i s t e r a d d r e s s 4 . i s s u e s t a r t c o m m a n d 5 . i s s u e 0 x 7 3 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y r e a d ? b i t 1 ) 6 . r e a d t h e a l s _ d a t a _ l s b b y t e 7 . r e a d t h e a l s _ d a t a _ m s b b y t e 8 . i s s u e s t o p c o m m a n d d e v i c e _ i d _ l s b a n d d e v i c e _ i d _ m s b r e g i s t e r s ( 0 x 0 8 , 0 x 0 9 ) t h e d e v i c e _ i d r e g i s t e r i s a p r e ? p r o g r a m m e d r e g i s t e r t h a t d e s c r i b e s t h e d e v i c e . f o r t h e n o a 1 3 0 5 , t h e r e g i s t e r h o l d s t h e d e c i m a l v a l u e o f 1 3 0 5 ( 0 x 0 5 1 9 ) . t h e d e v i c e _ i d r e g i s t e r i s 1 6 ? b i t s w i d e a n d i s a c c e s s e d f r o m t h e i 2 c b u s a s t w o 8 ? b i t r e g i s t e r s f o r t h e l e a s t a n d m o s t s i g n i f i c a n t b i t s ( l s b a n d m s b ) . t o r e a d t h e d e v i c e _ i d r e g i s t e r , u s e t h e f o l l o w i n g r e a d c o m m a n d s e q u e n c e : 1 . i s s u e s t a r t c o m m a n d 2 . i s s u e 0 x 7 2 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y w r i t e ? b i t 0 ) 3 . i s s u e 0 x 0 8 f o r t h e d e v i c e _ i d _ l s b r e g i s t e r a d d r e s s 4 . i s s u e s t a r t c o m m a n d 5 . i s s u e 0 x 7 3 ( l o w e r s e v e n b i t s o f i 2 c s l a v e a d d r e s s 0 x 3 9 f o l l o w e d b y r e a d ? b i t 1 ) 6 . r e a d t h e d e v i c e _ i d _ l s b b y t e 7 . r e a d t h e d e v i c e _ i d _ m s b b y t e 8 . i s s u e s t o p c o m m a n d
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 1 2 e x a m p l e p r o g r a m m i n g s e q u e n c e t h e f o l l o w i n g p s e u d o c o d e c o n f i g u r e s t h e n o a 1 3 0 5 a m b i e n t l i g h t s e n s o r a n d t h e n r u n s i t i n a n i n t e r r u p t d r i v e n m o d e . w h e n t h e c o n t r o l l e r r e c e i v e s a n i n t e r r u p t , i t r e a d s t h e a l s _ d a t a f r o m t h e d e v i c e , s e t s a f l a g a n d t h e n w a i t s f o r t h e m a i n p o l l i n g l o o p t o r e s p o n d t o t h e a m b i e n t l i g h t c h a n g e . e x t e r n a l s u b r o u t i n e i 2 c _ r e a d _ b y t e ( i 2 c _ a d d r e s s , d a t a _ a d d r e s s ) ; e x t e r n a l s u b r o u t i n e i 2 c _ r e a d _ b l o c k ( i 2 c _ a d d r e s s , d a t a _ s t a r t _ a d d r e s s , c o u n t , m e m o r y _ m a p ) ; e x t e r n a l s u b r o u t i n e i 2 c _ w r i t e _ b y t e ( i 2 c _ a d d r e s s , d a t a _ a d d r e s s , d a t a ) ; e x t e r n a l s u b r o u t i n e i 2 c _ w r i t e _ b l o c k ( i 2 c _ a d d r e s s , d a t a _ s t a r t _ a d d r e s s , c o u n t , m e m o r y _ m a p ) ; s u b r o u t i n e i n i t i a l i z e _ a l s ( ) { m e m b u f [ 0 x 0 0 ] = 0 x 0 8 ; / / p o w e r _ c o n t r o l a s s e r t p o w e r o n m e m b u f [ 0 x 0 1 ] = 0 x 1 0 ; / / r e s e t a s s e r t r e s e t m e m b u f [ 0 x 0 2 ] = 0 x 0 2 ; / / i n t e g r a t i o n _ t i m e s e l e c t 2 0 0 m s m e m b u f [ 0 x 0 3 ] = 0 x 0 1 ; / / i n t _ s e l e c t s e l e c t l o w t o h i g h m e m b u f [ 0 x 0 4 ] = 0 x f f ; / / i n t _ t h r e s h _ l s b m e m b u f [ 0 x 0 5 ] = 0 x 8 f ; / / i n t _ t h r e s h _ m s b i 2 c _ w r i t e _ b l o c k ( i 2 c a d d r , 0 x 0 0 , 6 , m e m b u f ) ; }s u b r o u t i n e i 2 c _ i n t e r u p t _ h a n d l e r ( ) { / / r e t r i e v e a n d s t o r e t h e a l s d a t a a l s _ d a t a _ l s b = i 2 c _ r e a d _ b y t e ( i 2 c a d d r , 0 x 0 6 ) ; a l s _ d a t a _ m s b = i 2 c _ r e a d _ b y t e ( i 2 c a d d r , 0 x 0 7 ) ; n e w a l s = 0 x 0 1 ; } s u b r o u t i n e m a i n _ l o o p ( ) { i 2 c a d d r = 0 x 3 9 ; n e w a l s = 0 x 0 0 ; i n i t i a l i z e _ a l s ( ) ; l o o p { / / d o s o m e o t h e r p o l l i n g o p e r a t i o n s i f ( n e w a l s = = 0 x 0 1 ) { n e w a l s = 0 x 0 0 ; / / d o s o m e o p e r a t i o n s w i t h a l s _ d a t a } } }
n o a 1 3 0 5 h t t p : / / o n s e m i . c o m 1 3 p a c k a g e d i m e n s i o n s n o t e s : 1 . d i m e n s i o n i n g a n d t o l e r a n c i n g p e r a s m e y 1 4 . 5 m , 1 9 9 4 . 2 . c o n t r o l l i n g d i m e n s i o n : m i l l i m e t e r s . 3 . d i m e n s i o n b a p p l i e s t o p l a t e d t e r m i n a l a n d i s m e a s u r e d b e t w e e n 0 . 1 5 a n d 0 . 3 0 m m f r o m t h e t e r m i n a l t i p . 4 . c o p l a n a r i t y a p p l i e s t o t h e e x p o s e d p a d a s w e l l a s t h e t e r m i n a l s . s e a t i n g p l a n e d e 0 . 1 0 c a 3 2 x 2 x 0 . 1 0 c c u d f n 6 , 2 x 2 c a s e 5 0 5 a d ? 0 1 i s s u e b d i m m a x m i l l i m e t e r s p i n o n e r e f e r e n c e 0 . 0 5 c 0 . 0 5 c 7 x a 0 . 1 0 c n o t e 3 l e d 2 e 2 b b 3 6 6 x 1 k 4 6 x 0 . 0 5 c b o t t o m v i e w m o u n t i n g f o o t p r i n t d i m e n s i o n s : m i l l i m e t e r s * f o r a d d i t i o n a l i n f o r m a t i o n o n o u r p b ? f r e e s t r a t e g y a n d s o l d e r i n g d e t a i l s , p l e a s e d o w n l o a d t h e o n s e m i c o n d u c t o r s o l d e r i n g a n d m o u n t i n g t e c h n i q u e s r e f e r e n c e m a n u a l , s o l d e r r m / d . a b t o p v i e w a a 1 d e t a i l a c s i d e v i e w n o t e 4 d e t a i l a e n d v i e w d  a a 1 b e 2 d d e k el  a 3 m i n 0 . 5 5 0 . 0 0 0 . 1 8 0 . 8 0 - - - 0 . 2 0 0 . 2 5 4 0 . 6 5 0 . 0 5 0 . 2 8 1 . 0 0 0 . 1 0 - - - 0 . 3 5 0 . 2 0 r e f 1 0 2 . 0 0 b s c 2 . 0 0 b s c 0 . 6 5 b s c   6 x 0 . 5 2 0 . 6 5 p i t c h 1 . 7 0 2 . 3 0 6 x 0 . 2 8 1 . 0 0 1 d 2 1 . 5 0 1 . 7 0 a 0 . 1 0 c b a 0 . 1 0 c b o n s e m i c o n d u c t o r a n d a r e r e g i s t e r e d t r a d e m a r k s o f s e m i c o n d u c t o r c o m p o n e n t s i n d u s t r i e s , l l c ( s c i l l c ) . s c i l l c o w n s t h e r i g h t s t o a n u m b e r o f p a t e n t s , t r a d e m a r k s , c o p y r i g h t s , t r a d e s e c r e t s , a n d o t h e r i n t e l l e c t u a l p r o p e r t y . a l i s t i n g o f s c i l l c ? s p r o d u c t / p a t e n t c o v e r a g e m a y b e a c c e s s e d a t w w w . o n s e m i . c o m / s i t e / p d f / p a t e n t ? m a r k i n g . p d f . s c i l l c r e s e r v e s t h e r i g h t t o m a k e c h a n g e s w i t h o u t f u r t h e r n o t i c e t o a n y p r o d u c t s h e r e i n . s c i l l c m a k e s n o w a r r a n t y , r e p r e s e n t a t i o n o r g u a r a n t e e r e g a r d i n g t h e s u i t a b i l i t y o f i t s p r o d u c t s f o r a n y p a r t i c u l a r p u r p o s e , n o r d o e s s c i l l c a s s u m e a n y l i a b i l i t y a r i s i n g o u t o f t h e a p p l i c a t i o n o r u s e o f a n y p r o d u c t o r c i r c u i t , a n d s p e c i f i c a l l y d i s c l a i m s a n y a n d a l l l i a b i l i t y , i n c l u d i n g w i t h o u t l i m i t a t i o n s p e c i a l , c o n s e q u e n t i a l o r i n c i d e n t a l d a m a g e s . ? t y p i c a l ? p a r a m e t e r s w h i c h m a y b e p r o v i d e d i n s c i l l c d a t a s h e e t s a n d / o r s p e c i f i c a t i o n s c a n a n d d o v a r y i n d i f f e r e n t a p p l i c a t i o n s a n d a c t u a l p e r f o r m a n c e m a y v a r y o v e r t i m e . a l l o p e r a t i n g p a r a m e t e r s , i n c l u d i n g ? t y p i c a l s ? m u s t b e v a l i d a t e d f o r e a c h c u s t o m e r a p p l i c a t i o n b y c u s t o m e r ? s t e c h n i c a l e x p e r t s . s c i l l c d o e s n o t c o n v e y a n y l i c e n s e u n d e r i t s p a t e n t r i g h t s n o r t h e r i g h t s o f o t h e r s . s c i l l c p r o d u c t s a r e n o t d e s i g n e d , i n t e n d e d , o r a u t h o r i z e d f o r u s e a s c o m p o n e n t s i n s y s t e m s i n t e n d e d f o r s u r g i c a l i m p l a n t i n t o t h e b o d y , o r o t h e r a p p l i c a t i o n s i n t e n d e d t o s u p p o r t o r s u s t a i n l i f e , o r f o r a n y o t h e r a p p l i c a t i o n i n w h i c h t h e f a i l u r e o f t h e s c i l l c p r o d u c t c o u l d c r e a t e a s i t u a t i o n w h e r e p e r s o n a l i n j u r y o r d e a t h m a y o c c u r . s h o u l d b u y e r p u r c h a s e o r u s e s c i l l c p r o d u c t s f o r a n y s u c h u n i n t e n d e d o r u n a u t h o r i z e d a p p l i c a t i o n , b u y e r s h a l l i n d e m n i f y a n d h o l d s c i l l c a n d i t s o f f i c e r s , e m p l o y e e s , s u b s i d i a r i e s , a f f i l i a t e s , a n d d i s t r i b u t o r s h a r m l e s s a g a i n s t a l l c l a i m s , c o s t s , d a m a g e s , a n d e x p e n s e s , a n d r e a s o n a b l e a t t o r n e y f e e s a r i s i n g o u t o f , d i r e c t l y o r i n d i r e c t l y , a n y c l a i m o f p e r s o n a l i n j u r y o r d e a t h a s s o c i a t e d w i t h s u c h u n i n t e n d e d o r u n a u t h o r i z e d u s e , e v e n i f s u c h c l a i m a l l e g e s t h a t s c i l l c w a s n e g l i g e n t r e g a r d i n g t h e d e s i g n o r m a n u f a c t u r e o f t h e p a r t . s c i l l c i s a n e q u a l o p p o r t u n i t y / a f f i r m a t i v e a c t i o n e m p l o y e r . t h i s l i t e r a t u r e i s s u b j e c t t o a l l a p p l i c a b l e c o p y r i g h t l a w s a n d i s n o t f o r r e s a l e i n a n y m a n n e r . p u b l i c a t i o n o r d e r i n g i n f o r m a t i o n n . a m e r i c a n t e c h n i c a l s u p p o r t : 8 0 0 ? 2 8 2 ? 9 8 5 5 t o l l f r e e u s a / c a n a d a e u r o p e , m i d d l e e a s t a n d a f r i c a t e c h n i c a l s u p p o r t : p h o n e : 4 2 1 3 3 7 9 0 2 9 1 0 j a p a n c u s t o m e r f o c u s c e n t e r p h o n e : 8 1 ? 3 ? 5 8 1 7 ? 1 0 5 0 n o a 1 3 0 5 / d l i t e r a t u r e f u l f i l l m e n t : l i t e r a t u r e d i s t r i b u t i o n c e n t e r f o r o n s e m i c o n d u c t o r p . o . b o x 5 1 6 3 , d e n v e r , c o l o r a d o 8 0 2 1 7 u s a p h o n e : 3 0 3 ? 6 7 5 ? 2 1 7 5 o r 8 0 0 ? 3 4 4 ? 3 8 6 0 t o l l f r e e u s a / c a n a d a f a x : 3 0 3 ? 6 7 5 ? 2 1 7 6 o r 8 0 0 ? 3 4 4 ? 3 8 6 7 t o l l f r e e u s a / c a n a d a e m a i l : o r d e r l i t @ o n s e m i . c o m o n s e m i c o n d u c t o r w e b s i t e : w w w . o n s e m i . c o m o r d e r l i t e r a t u r e : h t t p : / / w w w . o n s e m i . c o m / o r d e r l i t f o r a d d i t i o n a l i n f o r m a t i o n , p l e a s e c o n t a c t y o u r l o c a l s a l e s r e p r e s e n t a t i v e


▲Up To Search▲   

 
Price & Availability of NOA1305

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X